/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link network_access_points}.
 * </p>
 *
 * @author Cedric Nana
 * @see network_access_points
 * @generated
 */
public class network_access_pointsWrapper implements network_access_points,
	ModelWrapper<network_access_points> {
	public network_access_pointsWrapper(
		network_access_points network_access_points) {
		_network_access_points = network_access_points;
	}

	@Override
	public Class<?> getModelClass() {
		return network_access_points.class;
	}

	@Override
	public String getModelClassName() {
		return network_access_points.class.getName();
	}

	@Override
	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("ID", getID());
		attributes.put("Identifier", getIdentifier());
		attributes.put("type", getType());

		return attributes;
	}

	@Override
	public void setModelAttributes(Map<String, Object> attributes) {
		Long ID = (Long)attributes.get("ID");

		if (ID != null) {
			setID(ID);
		}

		String Identifier = (String)attributes.get("Identifier");

		if (Identifier != null) {
			setIdentifier(Identifier);
		}

		Long type = (Long)attributes.get("type");

		if (type != null) {
			setType(type);
		}
	}

	/**
	* Returns the primary key of this network_access_points.
	*
	* @return the primary key of this network_access_points
	*/
	@Override
	public long getPrimaryKey() {
		return _network_access_points.getPrimaryKey();
	}

	/**
	* Sets the primary key of this network_access_points.
	*
	* @param primaryKey the primary key of this network_access_points
	*/
	@Override
	public void setPrimaryKey(long primaryKey) {
		_network_access_points.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the i d of this network_access_points.
	*
	* @return the i d of this network_access_points
	*/
	@Override
	public long getID() {
		return _network_access_points.getID();
	}

	/**
	* Sets the i d of this network_access_points.
	*
	* @param ID the i d of this network_access_points
	*/
	@Override
	public void setID(long ID) {
		_network_access_points.setID(ID);
	}

	/**
	* Returns the identifier of this network_access_points.
	*
	* @return the identifier of this network_access_points
	*/
	@Override
	public java.lang.String getIdentifier() {
		return _network_access_points.getIdentifier();
	}

	/**
	* Sets the identifier of this network_access_points.
	*
	* @param Identifier the identifier of this network_access_points
	*/
	@Override
	public void setIdentifier(java.lang.String Identifier) {
		_network_access_points.setIdentifier(Identifier);
	}

	/**
	* Returns the type of this network_access_points.
	*
	* @return the type of this network_access_points
	*/
	@Override
	public long getType() {
		return _network_access_points.getType();
	}

	/**
	* Sets the type of this network_access_points.
	*
	* @param type the type of this network_access_points
	*/
	@Override
	public void setType(long type) {
		_network_access_points.setType(type);
	}

	@Override
	public boolean isNew() {
		return _network_access_points.isNew();
	}

	@Override
	public void setNew(boolean n) {
		_network_access_points.setNew(n);
	}

	@Override
	public boolean isCachedModel() {
		return _network_access_points.isCachedModel();
	}

	@Override
	public void setCachedModel(boolean cachedModel) {
		_network_access_points.setCachedModel(cachedModel);
	}

	@Override
	public boolean isEscapedModel() {
		return _network_access_points.isEscapedModel();
	}

	@Override
	public java.io.Serializable getPrimaryKeyObj() {
		return _network_access_points.getPrimaryKeyObj();
	}

	@Override
	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_network_access_points.setPrimaryKeyObj(primaryKeyObj);
	}

	@Override
	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _network_access_points.getExpandoBridge();
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.model.BaseModel<?> baseModel) {
		_network_access_points.setExpandoBridgeAttributes(baseModel);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
		_network_access_points.setExpandoBridgeAttributes(expandoBridge);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_network_access_points.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new network_access_pointsWrapper((network_access_points)_network_access_points.clone());
	}

	@Override
	public int compareTo(
		de.hsmannheim.pepa.patientenportal.apanwep.model.network_access_points network_access_points) {
		return _network_access_points.compareTo(network_access_points);
	}

	@Override
	public int hashCode() {
		return _network_access_points.hashCode();
	}

	@Override
	public com.liferay.portal.model.CacheModel<de.hsmannheim.pepa.patientenportal.apanwep.model.network_access_points> toCacheModel() {
		return _network_access_points.toCacheModel();
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.network_access_points toEscapedModel() {
		return new network_access_pointsWrapper(_network_access_points.toEscapedModel());
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.network_access_points toUnescapedModel() {
		return new network_access_pointsWrapper(_network_access_points.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _network_access_points.toString();
	}

	@Override
	public java.lang.String toXmlString() {
		return _network_access_points.toXmlString();
	}

	@Override
	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_network_access_points.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof network_access_pointsWrapper)) {
			return false;
		}

		network_access_pointsWrapper network_access_pointsWrapper = (network_access_pointsWrapper)obj;

		if (Validator.equals(_network_access_points,
					network_access_pointsWrapper._network_access_points)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
	 */
	public network_access_points getWrappednetwork_access_points() {
		return _network_access_points;
	}

	@Override
	public network_access_points getWrappedModel() {
		return _network_access_points;
	}

	@Override
	public void resetOriginalValues() {
		_network_access_points.resetOriginalValues();
	}

	private network_access_points _network_access_points;
}